--澳门骰宝枚举

require "pubenum"  -- 在app/common/lib 

EDICETableState = {
	TABLE_STATE_UNKNOW = 0,

    TABLE_STATE_WAIT_PLAYER_SITDOWN	= 1,   --等待玩家坐下
	TABLE_STATE_WAIT_ALL_READY = 2,	       --等待所有玩家准备

    --等待游戏开始
    TABLE_STATE_WAIT_GAME_START = 3,       --等待游戏开始
	TABLE_STATE_GAME_START = 4,            --游戏开始

     --等待一局游戏开始
	TABLE_STATE_WAIT_ONE_GAME_START = 5,    --等待一局开始
    TABLE_STATE_ONE_GAME_START = 6,         --一局游戏开始

    --等待下注
    TABLE_STATE_WAIT_PLAYER_BET = 7,       --等待玩家下注
    TABLE_STATE_PLAYER_BET = 8,           --玩家下注

    --开骰子
	TABLE_STATE_WAIT_OPEN_DICE = 9,          --等待摇骰子
    TABLE_STATE_OPEN_DICE = 10,               --摇骰子,播放转动动画

    --处理开骰子结果
    TABLE_STATE_WAIT_HANDLE_OPEN_DICE_RESULT = 11,   --等待处理开骰子结果
    TABLE_STATE_HANDLE_OPEN_DICE_RESULT = 12,        --处理开骰子结果

    --等待一局游戏结束
    TABLE_STATE_WAIT_ONE_GAME_END = 13,     --等待一局游戏结束
    TABLE_STATE_ONE_GAME_END = 14,          --一局游戏结束

    --等待一局游戏真正结束
    TABLE_STATE_WAIT_ONE_GAME_REAL_END = 15, --等待一局游戏真正结束
	TABLE_STATE_ONE_GAME_REAL_END = 16,      --一局游戏真正结束

    --等待游戏结束
    TABLE_STATE_WAIT_GAME_END = 17,          --等待游戏结束
    TABLE_STATE_GAME_END = 18,  	         --游戏结束
}

--基本操作类型
EDICEActionType = {
	ACTION_TYPE_UNKNOW = 0,         --未定义
	ACTION_TYPE_BET = 1,            --下注
    ACTION_TYPE_CHANGE_SCORE = 2,   --切换底注
    ACTION_TYPE_REPEAT_LAST_BET = 3,--续压（重复上次下注）
    ACTION_TYPE_UP_BANKER = 4,      --上庄
    ACTION_TYPE_DOWN_BANKER = 5,    --下庄
}

--基本操作状态 
EDICEActionState = {
    NODO = 0,    --未操作
    DOING = 1,   --操作中(服务器处理中)
    DONE = 2,    --已完成
}

--桌子类型
EDICETableType = {
    TABLE_TYPE_DIAMOND = 1,	--钻石场
    TABLE_TYPE_COIN = 2,    --金币场
    --TABLE_TYPE_FNAGKA = 3,  --房卡场
    TABLE_TYPE_ZIJIAN = 4,  --自建场
    TABLE_TYPE_ZRSX = 5,    --真人场
}

--座位状态
EDICESeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,       --没有玩家
	SEAT_STATE_WAIT_READY = 2,      --等待准备
    SEAT_STATE_WAIT_START = 3,      --等待开局
	SEAT_STATE_WAIT_BET = 4,        --等待下注
	SEAT_STATE_PLAYING  = 5,        --游戏中
    SEAT_STATE_INGAME_WATCH = 6,    --游戏中旁观,即本局未下注

}

--桌子删除原因
EDICETableDeleteReason = {
    DELETE_REASON_UNKONW = 0,                         --未知原因
    DELETE_REASON_TABLE_NO_PLAYER = 1,                --桌子没有人被自动删除
    DELETE_REASON_SYSTEM_REQUIRE = 2,                 --系统强制要求删除
    DELETE_REASON_SYSTEM_ERROR = 3,                   --系统错误被删除
}

--下注按钮id定义
EDICEBetBtnId = {
    BET_ID_LITTLE       = 1101,   ---小：总点数 4 至 10  1赔2
    BET_ID_BIG          = 1102,   ---大: 总点数 11 至 17 1赔2

    BET_ID_FOUR         = 2101,  ---总和为 4  1 赔 60
    BET_ID_FIVE         = 2102,  ---总和为 5  1 赔 30
    BET_ID_SIX          = 2103,  ---总和为 6  1 赔 20
    BET_ID_SEVEN        = 2104,  ---总和为 7  1 赔 12
    BET_ID_EIGHT        = 2105,  ---总和为 8  1 赔 8
    BET_ID_NINE         = 2106,  ---总和为 9  1 赔 6 
    BET_ID_TEN          = 2107,  ---总和为10  1 赔 6
    BET_ID_ELEVEN       = 2108,  ---总和为11  1 赔 6
    BET_ID_TWELVE       = 2109,  ---总和为12  1 赔 6
    BET_ID_THIRTEEN     = 2110,  ---总和为13  1 赔 8
    BET_ID_FOURTEEN     = 2111,  ---总和为14  1 赔 12
    BET_ID_FIFTEEN      = 2112,  ---总和为15  1 赔 20
    BET_ID_SIXTEEN      = 2113,  ---总和为16  1 赔 30
    BET_ID_SEVENTEEN    = 2114,  ---总和为17  1 陪 60

    BET_ID_SINGLE_ONE   = 2201,  ---骰1(单骰 1赔1, 双骰 1赔2,三骰 1赔3)
    BET_ID_SINGLE_TWO   = 2202,  ---骰2(单骰 1赔1, 双骰 1赔2,三骰 1赔3)
    BET_ID_SINGLE_THREE = 2203,  ---骰3(单骰 1赔1, 双骰 1赔2,三骰 1赔3)
    BET_ID_SINGLE_FOUR  = 2204,  ---骰4(单骰 1赔1, 双骰 1赔2,三骰 1赔3)
    BET_ID_SINGLE_FIVE  = 2205,  ---骰5(单骰 1赔1, 双骰 1赔2,三骰 1赔3)
    BET_ID_SINGLE_SIX   = 2206,  ---骰6(单骰 1赔1, 双骰 1赔2,三骰 1赔3)

    BET_ID_DOUBLE_ONE   = 2301,  ---双骰 1点
    BET_ID_DOUBLE_TWO   = 2302,  ---双骰 2点
    BET_ID_DOUBLE_THREE = 2303,  ---双骰 3点
    BET_ID_DOUBLE_FOUR  = 2304,  ---双骰 4点
    BET_ID_DOUBLE_FIVE  = 2305,  ---双骰 5点
    BET_ID_DOUBLE_SIX   = 2306,  ---双骰 6点

    BET_ID_TRIPLE_ONE   = 2401,  ---围骰 1点
    BET_ID_TRIPLE_TWO   = 2402,  ---围骰 2点
    BET_ID_TRIPLE_THREE = 2403,  ---围骰 3点
    BET_ID_TRIPLE_FOUR  = 2404,  ---围骰 4点
    BET_ID_TRIPLE_FIVE  = 2405,  ---围骰 5点
    BET_ID_TRIPLE_SIX   = 2406,  ---围骰 6点

    BET_ID_ALL_TRIPPLE  = 2501,  ---全围 
}

EDICESumType = {
    SUM_LITTLE = {4,10},
    SUM_BIG    = {11,17},
}

EDICEBtnIDSum = {
    [4] = 2101,
    [5] = 2102,
    [6] = 2103,
    [7] = 2104,
    [8] = 2105,
    [9] = 2106,
    [10] = 2107,
    [11] = 2108,
    [12] = 2109,
    [13] = 2110,
    [14] = 2111,
    [15] = 2112,
    [16] = 2113,
    [17] = 2114,
    [18] = 2115,
}

EDICEsType = {
    DICE_TYPE_NORMAL    = 1,  ---普通的牌型
    DICE_TYPE_WEISHAI   = 2,  ---围骰
    DICE_TYPE_QUANWEI   = 3,  ---全围
}

--游戏名
EGameName = "澳门骰宝"

--游戏状态
EGameState = {
    GAME_STATE_START_GAME = "tlsNewGame",           --游戏开始
    GAME_STATE_START_BET = "StartBet",              --开始下注
    GAME_STATE_STOP_BET = "tlsUptime",              --停止下注
    GAME_STATE_OPEN_CARD = "tlsOpenCard",           --开牌中
    GAME_STATE_GAME_BALANCE = "tlsShowWinner",      --结算中
    GAME_STATE_WAIT_NEXT = "tlsGameIdle",           --等待下一局
    GAME_STATE_DEALER_LEAVE = "tlsDealerLogout",    --荷官离开
    GAME_STATE_DEALER_ENTER = "tlsDealerLogin",     --荷官进入
    GAME_STATE_GAME_SHUFFLE = "tlsShuffle",         --洗牌中
    GAME_STATE_GAME_PAUSE = "tlsPause",             --暂停游戏
    GAME_STATE_GAME_RESUME = "tlsCancelPause",      --继续游戏
    GAME_STATE_DISCONNECT = "Dsiconnect",           --游戏断线
    GAME_STATE_RECONNECT = "Reconnect",             --游戏断线重连
}
